package com.fangzhi.mobel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName orders
 */
@TableName(value ="orders")
@Accessors(chain = true)
@Data
public class Orders implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 销售人员id
     */
    private Long adminAccountId;

    /**
     * 客户id
     */
    private Long customer;

    /**
     * 订单总金额
     */
    private Integer totalAmount;

    /**
     * 回款金额
     */
    private Integer depositAmount;

    /**
     * 售后金额
     */
    private Integer afterAmount;

    /**
     * 优惠金额
     */
    private Integer discountAmount;

    /**
     * 1:业务员已提交 2：负责人已审核 3：财务已审核 4：文员已填单  5：订单已结束
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime ctime;

    /**
     * 修改时间
     */
    private Date utime;

    /**
     * 物流供应商
     */
    private String logisticName;

    /**
     * 物流单号
     */
    private String logisticId;

    private String imageComments;



    private Integer priceType;
    private Integer materialType;
    private Integer customerType;
    private Integer freeShippingType;
    private String comments;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}